gnome = import('gnome')

gtkmm_dep = dependency('gtkmm-4.0', version: '>= 4.16.0')

event_client_resources = gnome.compile_resources(
  'EventResources',
  'resources/event.gresource.xml',
  source_dir: 'resources',
  c_name: 'EventResources',
)

client_src = [
  'main.cpp',
  'EventApplication.cpp',
  'EventApplicationWindow.cpp',
  'EventButton.cpp',
  'EventEntryBox.cpp',
  'GroupEntry.cpp',
  'EventEntry.cpp',
  'EventResource.cpp',
  'EventListUtils.cpp',
]

src = [client_src]

event_client_deps = [gtkmm_dep, config_h]

exe = executable(
  'event_client',
  event_client_resources,
  sources: src,
  dependencies: event_client_deps,
  cpp_args: '-g',
  install: true,
)

test('测试 EventAndTask 客户端', exe)